<template>
  <div id="app">
    <router-view />
    <van-tabbar route 
        :safe-area-inset-bottom="safeAreaInsetBottom" 
        :placeholder="placeholder"
        v-model="active" >
      <van-tabbar-item replace to="/" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item replace to="/about" icon="search">搜索</van-tabbar-item>
      <van-tabbar-item replace to="/home" icon="friends-o">订单</van-tabbar-item>
      <van-tabbar-item replace to="/buttons" icon="setting-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
  import { Tabbar, TabbarItem } from 'vant';
  export default {
    name: 'App',
    components: {
      [Tabbar.name] : Tabbar,
      [TabbarItem.name] : TabbarItem
    },
    data(){
      return {
        safeAreaInsetBottom:true,
        placeholder:true,
        active: 0,
      }
    },
    watch: {
    },
    created(){
		},
    mounted(){
    },
    methods:{
    }
  }
</script>

<style lang="less">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
</style>
